#ifndef __key_h   
#define __key_h
//HAL--------------------
	#define P_key1  P1_5	
	#define P_key2  P1_7	
	#define P_key3  P1_2	
	#define P_key4  P3_5	
	#define P_key5  P3_3	

        
//Const--------------------
  #define D_keyCount  5
   
//Var----------------------
 #ifdef __key_c
    uint8_t keyValue;
    uint8_t keyBuf[D_keyCount]={0xff,0xff,0xff,0xff,0xff};
    uint8_t keySta[D_keyCount]={1,1,1,1,1};
    uint8_t backUp[D_keyCount]={1,1,1,1,1};
   
 #else
    extern  uint8_t keyValue;
    extern  uint8_t keyBuf[D_keyCount];
    extern  uint8_t keySta[D_keyCount];
    extern  uint8_t backUp[D_keyCount];
   
    
 
 #endif
   

//Function----------------------

void GetKey();
void KeyJudge();
#endif